<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>时间常用方法</title>
</head>
<body>
<script>
  var date = Date();//返回当前的日期和时间
  console.log(date);
</script>
</body>
</html>